package Cat_Dog_abstract;

public class Abstract_Demo {

	public static void main(String[] args) {
		Animal cat = new Cat(25,"加菲猫");
	    
		System.out.println(cat.getName()+","+cat.getAge());

		cat.eat(cat.getName());
		
		
		Animal cat_wucan = new Cat();
		
		cat_wucan.setAge(11);
		cat_wucan.setName("汤姆");
		
		cat_wucan.eat(cat_wucan.getName());
		
		
		
		Cat Zi_cat = new Cat();
		Zi_cat.setAge(1);
		Zi_cat.setName("笨笨");
		
		Zi_cat.eat(Zi_cat.getName());
		

//		Animal Fu_cat = new Animal();
		
		
		
    }

}